package com.heima.model.article.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author xiaquanen
 * @version 1.0
 * @project heima-leadnews
 * @date 2024/7/19 09:53:48
 */
@Data
@TableName("ap_article_config")
public class ApArticleConfig {

    public ApArticleConfig(Long id) {
        this.articleId = id;
        this.isComment = 1;
        this.isForward = 1;
        this.isDown = 0;
        this.isDelete = 0;
    }

    @TableId(value = "id")
    private Long id;

    @TableField("article_id")
    private Long articleId;

    @TableField("is_comment")
    private Short isComment;

    @TableField("is_forward")
    private Short isForward;

    @TableField("is_down")
    private Short isDown;

    @TableField("is_delete")
    private Short isDelete;

}
